#include<iostream>
using namespace std;
int main(){
	int t,H,M,S;
	scanf("%d",&t);
	H=t/3600;
	M=t%3600/60;
	S=t%60;
	printf("%d:%d:%d\n",H,M,S);
	return 0;
} 
